package com.yizhuoyan.his.webapi.controller.admin.vo;

import com.yizhuoyan.his.dto.CheckObjectRecordDto;
import com.yizhuoyan.his.entity.FinExpenseCategoryEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
@Data
public class InspectionApplicationVo {
    ///Case_check_record 表
    //项目名称
    private String projectName;
    //项目规格
    private String position;
    ///hos_nondrug 表
    //项目id
    private Long nondrugExpenseItemId;
    ///hos_nondrug表
    //单价
    private Integer unitPrice;
    ///hos_department表
    //执行科目
    private String name;
    ////case_medical_record 表
    //检查建议
    private String proposalDetail;
    //检查注意事项
    private String carefulDetail;
    private Long medicalRecordId;

    public static InspectionApplicationVo of(CheckObjectRecordDto checkObjectRecordDto){
       InspectionApplicationVo inspectionApplicationVo=new InspectionApplicationVo();
       inspectionApplicationVo.setCarefulDetail(checkObjectRecordDto.getCarefulDetail());
       inspectionApplicationVo.setMedicalRecordId(checkObjectRecordDto.getMedicalRecordId());
       inspectionApplicationVo.setName(checkObjectRecordDto.getName());
       inspectionApplicationVo.setNondrugExpenseItemId(checkObjectRecordDto.getNondrugExpenseItemId());
       inspectionApplicationVo.setPosition(checkObjectRecordDto.getPosition());
       inspectionApplicationVo.setProposalDetail(checkObjectRecordDto.getProposalDetail());
       inspectionApplicationVo.setUnitPrice(checkObjectRecordDto.getUnitPrice());
       return inspectionApplicationVo;
    }
}
